package com.bytecodezz.app.sketch.common.draw

import android.content.Context
import com.alibaba.android.arouter.facade.template.IProvider
import com.alibaba.android.arouter.launcher.ARouter
import com.bytecodezz.app.sketch.common.router.DrawPath

interface DrawConfig : IProvider {
    fun onProcessInit(context: Context)

    companion object {
        fun initProcess(context: Context) {
            ARouter.getInstance().build(DrawPath.SERVICE_DRAW_CONFIG).navigation()?.let {
                if (it is DrawConfig) {
                    it.onProcessInit(context)
                }
            }
        }
    }
}